﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Site1.Master" AutoEventWireup="true" CodeBehind="ViewEvent.aspx.cs" Inherits="Event_SG_EWDT.ViewEvent" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
<title>View Event</title>
    <link href="Styles/ViewEvent.css" rel="stylesheet" type="text/css" />

    <script type="text/javascript">
        // Popup window code
        function newPopup() {

            var loc = encodeURIComponent(document.location);

            var u = "http://www.facebook.com/sharer.php?u=" + loc + "&t=event@sg - events";

            popupWindow = window.open(
		u, 'popUpWindow', 'height=700,width=800,left=10,top=10,resizable=yes,scrollbars=yes,toolbar=yes,menubar=no,location=no,directories=no,status=yes')
        }
    </script>

    <script>        !function (d, s, id) { var js, fjs = d.getElementsByTagName(s)[0]; if (!d.getElementById(id)) { js = d.createElement(s); js.id = id; js.src = "//platform.twitter.com/widgets.js"; fjs.parentNode.insertBefore(js, fjs); } } (document, "script", "twitter-wjs");</script>
    <!--<style type="text/css">
        .style1
        {
            width: 100%;
        }
        .style2
        {
            width: 160px;
        }
    </style> -->
    <style type="text/css">
        .style6
        {
            width: 149px;
        }
    </style>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder2" runat="server">
    <div  style="height: 755px" id="viewEventMainDiv">
        <asp:Image ID="imgViewEventPoster" runat="server" 
            CssClass="imgViewEventPoster" />
        <div style="z-index: 1; left: 392px; position: absolute; height: 678px; width: 498px; top: 5px">
        <p class="p_ViewEvent_div">
            &nbsp;</p>
        <p class="p_ViewEvent_div">
            <asp:Label ID="lblViewEventDetailsTitle" runat="server" 
                CssClass="lbl_ViewEventDetailsTitle"></asp:Label>
            </p>
            <table class="style1">
                <tr>
                    <td class="style6">
                        <asp:Label ID="lblViewEventDetailsDesc" runat="server" 
                            CssClass="lbl_ViewEventDetails" Text="Descriptions:"></asp:Label>
                    </td>
                    <td>
                        <asp:TextBox ID="tbxViewEventDesc" runat="server" BorderStyle="None" 
                            CssClass="tbx_ViewEventDetails_Multi" Height="111px" ReadOnly="True" 
                            TextMode="MultiLine" Width="332px" Enabled="False" BackColor="White">helloo!helloo!helloo!helloo!helloo!helloo!helloo!helloo!helloo!helloo!helloo!helloo!</asp:TextBox>
                    </td>
                </tr>
                <tr>
                    <td class="style6">
                        <asp:Label ID="lblViewEventDetailsSdate" runat="server" 
                            CssClass="lbl_ViewEventDetails" Text="Start Date:"></asp:Label>
                    </td>
                    <td>
                        <asp:TextBox ID="tbxViewEventSdate" runat="server" 
                            CssClass="tbx_ViewEventDetails" ReadOnly="True" Enabled="False" 
                            BackColor="White"></asp:TextBox>
                    </td>
                </tr>
                <tr>
                    <td class="style6">
                        <asp:Label ID="lblViewEventDetailsEdate" runat="server" 
                            CssClass="lbl_ViewEventDetails" Text="End Date:"></asp:Label>
                    </td>
                    <td>
                        <asp:TextBox ID="tbxViewEventEdate" runat="server" 
                            CssClass="tbx_ViewEventDetails" ReadOnly="True" Enabled="False" 
                            BackColor="White"></asp:TextBox>
                    </td>
                </tr>
                <tr>
                    <td class="style6">
                        <asp:Label ID="lblViewEventDetailsFee" runat="server" 
                            CssClass="lbl_ViewEventDetails" Text="Admission Fee:"></asp:Label>
                    </td>
                    <td>
                        <asp:TextBox ID="tbxViewEventFee" runat="server" 
                            CssClass="tbx_ViewEventDetails" ReadOnly="True" Enabled="False" 
                            BackColor="White"></asp:TextBox>
                    </td>
                </tr>
                <tr>
                    <td class="style6">
                        <asp:Label ID="lblViewEventDetailsLocation" runat="server" 
                            CssClass="lbl_ViewEventDetails" Text="Location:"></asp:Label>
                    </td>
                    <td>
                        <asp:TextBox ID="tbxViewEventLocation" runat="server" 
                            CssClass="tbx_ViewEventDetails" ReadOnly="True" Enabled="False" 
                            BackColor="White"></asp:TextBox>
                        <br />
                    </td>
                </tr>
                <tr>
                    <td class="style6">
                        <asp:Label ID="lblViewEventDetailsCategory" runat="server" 
                            CssClass="lbl_ViewEventDetails" Text="Category:"></asp:Label>
                    </td>
                    <td>
                        <asp:TextBox ID="tbxViewEventCategory" runat="server" 
                            CssClass="tbx_ViewEventDetails" ReadOnly="True" Enabled="False" 
                            BackColor="White"></asp:TextBox>
                    </td>
                </tr>
                <tr>
                    <td class="style6">
                        <a href="JavaScript:newPopup();" title="Share on Facebook...">
                        <img alt="alt" src="images/facebook.png" style="height: 25px; width: 25px" />
                        </a> 

                        <a id="twitter" runat="server" href="https://twitter.com/share" class="twitter-share-button" data-text="" data-lang="en" data-hashtags="eventatsg">Tweet</a>
                        </td>
                    <td>
                        <asp:Button ID="btnJoinEvent" runat="server" CssClass="btnJoinEvent" 
                            Text="Join!" onclick="btnJoinEvent_Click" Visible="False" />
                        <asp:Button ID="btnLeaveEvent" runat="server" CssClass="btnJoinEvent" 
                            Text="Leave" onclick="btnLeaveEvent_Click" Visible="False" />
                        <asp:Button ID="btnEditEvent" runat="server" CssClass="btnJoinEvent" 
                            Text="Manage" onclick="btnEditEvent_Click" Visible="False" />
                        <asp:Button ID="btnInviteEvent" runat="server" CssClass="btnJoinEvent" 
                            Text="Invite Others" onclick="btnInviteEvent_Click" Visible="False" />
                        <br />
                        <br />
                    </td>
                </tr>
            </table>
        </div>
        <br />
        <br />
    </div> 

</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
</asp:Content>
